//
// Created by xinhua on 2021/10/24.
//

#ifndef MRENDER_SPHEREBUFFERGEOMETRY_H
#define MRENDER_SPHEREBUFFERGEOMETRY_H


#include "../core/BufferGeometry.h"

class SphereBufferGeometry : public BufferGeometry{
private:
    /**
     * 半径
     */
    float radius;
    /**
     * 纵向分段
     */
    int heightSegments;
    /**
     * 横向分段
     */
    int widthSegments;

public:
    void onInit() override;
    void drawUI() override;
public:
    SphereBufferGeometry(const float radius = 1.0f, const int heightSegments = 10, const int widthSegments = 10);
    ~SphereBufferGeometry();
};


#endif //MRENDER_SPHEREBUFFERGEOMETRY_H
